package main.java.com.example;

public class Main {

    public static void main(String[] args) {
        System.out.println("Hello Moto!");
        // 4部电影
        Movie txwz = new Movie("天下无贼", Movie.REGULAR);
        Movie gf = new Movie("功夫", Movie.NEW_RELEASE);
        Movie gfxm = new Movie("功夫熊猫", Movie.CHILDRENS);
        Movie bxgy = new Movie("冰雪奇缘", Movie.CHILDRENS);
        // 顾客小明
        Customer xiaoming = new Customer("xiaoming");
        // 4个租赁
        Rental r1 = new Rental(txwz, 4);    // 天下无贼租赁4天
        Rental r2 = new Rental(gf, 3);      // 功夫租赁3天
        Rental r3 = new Rental(gfxm, 7);    // 功夫熊猫租赁7天
        Rental r4 = new Rental(bxgy, 7);    // 冰雪奇缘租赁7天
        xiaoming.addRental(r1);
        xiaoming.addRental(r2);
        xiaoming.addRental(r3);
        xiaoming.addRental(r4);
        System.out.println(xiaoming.textStatement());
    }
}
